﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace db_proto
{
    public partial class LoginPage : Form
    {
        private MainPage mp;
        
        public LoginPage()
        {
            InitializeComponent();
        }

        public LoginPage(MainPage mp)
        {
            InitializeComponent();
            this.mp = mp;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            mp.Show();
            this.Hide();
            this.Dispose();
        }

        private void LoginPage_Load(object sender, EventArgs e)
        {

        }
    }
}
